<template>
  <div>
    <h2>我是About的内容</h2>
  </div>
</template>

<script>
    export default {
        name:"About",
        // beforeDestroy(){
        //   console.log("About即将被销毁")

        // },
        // mounted(){
        //   console.log("About即将被挂载")
        //   window.aboutRoute= this.$route
        // window.aboutRouter= this.$router
        // }
        beforeRouteEnter(to,from,next){
          console.log("进入时")
          next()
        },
        beforeRouteLeave(to,from,next){
          console.log("离开时")
          next()
        },
    }
</script>

<style>

</style>